1. /* sdfsf2sd.cpp by K.Tsuru */
  2. // function ID = 300 DRADIX
  3. /**********************************************
  4. SDouble and SFraction classes
  5. It provides the conversion SFraction-->SDouble
  6. ***********************************************/
  7. #ifndef SN_H
  8. #include "sn.h"
  9. #endif
  10. SDouble SFToSD(const SFraction& x){
  11. SDouble r, d;
  12. SFraction y(x);
  13. r = y.Num(); d = y.Den(); //call reduce(1)
  14. r = r/d;
  15. return r;
  16. }

sdfsf2sd.cpp : last modifiled at 2015/12/03 21:43:39(422 bytes)
created at 2017/10/07 10:22:50
The creation time of this html file is 2017/10/07 11:29:39 (Sat Oct 07 11:29:39 2017).